package com.qfjy.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @ClassName TestTask
 * @Description TODO  定时任务 案例
 * @Author guoweixin
 * @Date 2022/4/2
 * @Version 1.0
 */
@Component  //IOC容器
@Slf4j
public class TestTask {
    //定时 指定时间轮
    //@Scheduled(cron = "0 0 7,10,12 * * ? ")
    public void jobInfo(){
        log.info("你好，定时打印的任务是--》");
    }
}
